import axios from 'axios';

axios.defaults.baseURL = 'http://localhost:8081'

export const createMaterialUsageApi = (materialUsage) => {
    return axios.post('/carsys/materialUsage/create', materialUsage);
}

export const getUsageByAssignmentIdApi = (assignmentId) => {
    return axios.get(`/carsys/materialUsage/byAssignment/${assignmentId}`);
}